/**
 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.vijayan.profile.model;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.impl.BaseModelImpl;

import java.io.Serializable;

import java.lang.reflect.Proxy;

/**
 * @author vijayan
 */
public class MyExpectationClp extends BaseModelImpl<MyExpectation>
	implements MyExpectation {
	public MyExpectationClp() {
	}

	public long getPrimaryKey() {
		return _exceptationId;
	}

	public void setPrimaryKey(long pk) {
		setExceptationId(pk);
	}

	public Serializable getPrimaryKeyObj() {
		return new Long(_exceptationId);
	}

	public long getExceptationId() {
		return _exceptationId;
	}

	public void setExceptationId(long exceptationId) {
		_exceptationId = exceptationId;
	}

	public long getProfileId() {
		return _profileId;
	}

	public void setProfileId(long profileId) {
		_profileId = profileId;
	}

	public int getMinAge() {
		return _minAge;
	}

	public void setMinAge(int minAge) {
		_minAge = minAge;
	}

	public int getMaxAge() {
		return _maxAge;
	}

	public void setMaxAge(int maxAge) {
		_maxAge = maxAge;
	}

	public String getExpectedReligion() {
		return _expectedReligion;
	}

	public void setExpectedReligion(String expectedReligion) {
		_expectedReligion = expectedReligion;
	}

	public String getExpectedCaste() {
		return _expectedCaste;
	}

	public void setExpectedCaste(String expectedCaste) {
		_expectedCaste = expectedCaste;
	}

	public String getExpectedSubCaste() {
		return _expectedSubCaste;
	}

	public void setExpectedSubCaste(String expectedSubCaste) {
		_expectedSubCaste = expectedSubCaste;
	}

	public String getExpectedCountry() {
		return _expectedCountry;
	}

	public void setExpectedCountry(String expectedCountry) {
		_expectedCountry = expectedCountry;
	}

	public String getExpectedState() {
		return _expectedState;
	}

	public void setExpectedState(String expectedState) {
		_expectedState = expectedState;
	}

	public String getExpectedCity() {
		return _expectedCity;
	}

	public void setExpectedCity(String expectedCity) {
		_expectedCity = expectedCity;
	}

	public String getExpectedHeight() {
		return _expectedHeight;
	}

	public void setExpectedHeight(String expectedHeight) {
		_expectedHeight = expectedHeight;
	}

	public String getExpectedWeight() {
		return _expectedWeight;
	}

	public void setExpectedWeight(String expectedWeight) {
		_expectedWeight = expectedWeight;
	}

	public String getExpectedComplexion() {
		return _expectedComplexion;
	}

	public void setExpectedComplexion(String expectedComplexion) {
		_expectedComplexion = expectedComplexion;
	}

	public String getExpectedLanguage() {
		return _expectedLanguage;
	}

	public void setExpectedLanguage(String expectedLanguage) {
		_expectedLanguage = expectedLanguage;
	}

	public String getExpectedMaritalStatus() {
		return _expectedMaritalStatus;
	}

	public void setExpectedMaritalStatus(String expectedMaritalStatus) {
		_expectedMaritalStatus = expectedMaritalStatus;
	}

	public String getExpectationDetail() {
		return _expectationDetail;
	}

	public void setExpectationDetail(String expectationDetail) {
		_expectationDetail = expectationDetail;
	}

	public MyExpectation toEscapedModel() {
		if (isEscapedModel()) {
			return this;
		}
		else {
			return (MyExpectation)Proxy.newProxyInstance(MyExpectation.class.getClassLoader(),
				new Class[] { MyExpectation.class },
				new AutoEscapeBeanHandler(this));
		}
	}

	public Object clone() {
		MyExpectationClp clone = new MyExpectationClp();

		clone.setExceptationId(getExceptationId());
		clone.setProfileId(getProfileId());
		clone.setMinAge(getMinAge());
		clone.setMaxAge(getMaxAge());
		clone.setExpectedReligion(getExpectedReligion());
		clone.setExpectedCaste(getExpectedCaste());
		clone.setExpectedSubCaste(getExpectedSubCaste());
		clone.setExpectedCountry(getExpectedCountry());
		clone.setExpectedState(getExpectedState());
		clone.setExpectedCity(getExpectedCity());
		clone.setExpectedHeight(getExpectedHeight());
		clone.setExpectedWeight(getExpectedWeight());
		clone.setExpectedComplexion(getExpectedComplexion());
		clone.setExpectedLanguage(getExpectedLanguage());
		clone.setExpectedMaritalStatus(getExpectedMaritalStatus());
		clone.setExpectationDetail(getExpectationDetail());

		return clone;
	}

	public int compareTo(MyExpectation myExpectation) {
		long pk = myExpectation.getPrimaryKey();

		if (getPrimaryKey() < pk) {
			return -1;
		}
		else if (getPrimaryKey() > pk) {
			return 1;
		}
		else {
			return 0;
		}
	}

	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}

		MyExpectationClp myExpectation = null;

		try {
			myExpectation = (MyExpectationClp)obj;
		}
		catch (ClassCastException cce) {
			return false;
		}

		long pk = myExpectation.getPrimaryKey();

		if (getPrimaryKey() == pk) {
			return true;
		}
		else {
			return false;
		}
	}

	public int hashCode() {
		return (int)getPrimaryKey();
	}

	public String toString() {
		StringBundler sb = new StringBundler(33);

		sb.append("{exceptationId=");
		sb.append(getExceptationId());
		sb.append(", profileId=");
		sb.append(getProfileId());
		sb.append(", minAge=");
		sb.append(getMinAge());
		sb.append(", maxAge=");
		sb.append(getMaxAge());
		sb.append(", expectedReligion=");
		sb.append(getExpectedReligion());
		sb.append(", expectedCaste=");
		sb.append(getExpectedCaste());
		sb.append(", expectedSubCaste=");
		sb.append(getExpectedSubCaste());
		sb.append(", expectedCountry=");
		sb.append(getExpectedCountry());
		sb.append(", expectedState=");
		sb.append(getExpectedState());
		sb.append(", expectedCity=");
		sb.append(getExpectedCity());
		sb.append(", expectedHeight=");
		sb.append(getExpectedHeight());
		sb.append(", expectedWeight=");
		sb.append(getExpectedWeight());
		sb.append(", expectedComplexion=");
		sb.append(getExpectedComplexion());
		sb.append(", expectedLanguage=");
		sb.append(getExpectedLanguage());
		sb.append(", expectedMaritalStatus=");
		sb.append(getExpectedMaritalStatus());
		sb.append(", expectationDetail=");
		sb.append(getExpectationDetail());
		sb.append("}");

		return sb.toString();
	}

	public String toXmlString() {
		StringBundler sb = new StringBundler(52);

		sb.append("<model><model-name>");
		sb.append("com.vijayan.profile.model.MyExpectation");
		sb.append("</model-name>");

		sb.append(
			"<column><column-name>exceptationId</column-name><column-value><![CDATA[");
		sb.append(getExceptationId());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>profileId</column-name><column-value><![CDATA[");
		sb.append(getProfileId());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>minAge</column-name><column-value><![CDATA[");
		sb.append(getMinAge());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>maxAge</column-name><column-value><![CDATA[");
		sb.append(getMaxAge());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>expectedReligion</column-name><column-value><![CDATA[");
		sb.append(getExpectedReligion());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>expectedCaste</column-name><column-value><![CDATA[");
		sb.append(getExpectedCaste());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>expectedSubCaste</column-name><column-value><![CDATA[");
		sb.append(getExpectedSubCaste());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>expectedCountry</column-name><column-value><![CDATA[");
		sb.append(getExpectedCountry());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>expectedState</column-name><column-value><![CDATA[");
		sb.append(getExpectedState());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>expectedCity</column-name><column-value><![CDATA[");
		sb.append(getExpectedCity());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>expectedHeight</column-name><column-value><![CDATA[");
		sb.append(getExpectedHeight());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>expectedWeight</column-name><column-value><![CDATA[");
		sb.append(getExpectedWeight());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>expectedComplexion</column-name><column-value><![CDATA[");
		sb.append(getExpectedComplexion());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>expectedLanguage</column-name><column-value><![CDATA[");
		sb.append(getExpectedLanguage());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>expectedMaritalStatus</column-name><column-value><![CDATA[");
		sb.append(getExpectedMaritalStatus());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>expectationDetail</column-name><column-value><![CDATA[");
		sb.append(getExpectationDetail());
		sb.append("]]></column-value></column>");

		sb.append("</model>");

		return sb.toString();
	}

	private long _exceptationId;
	private long _profileId;
	private int _minAge;
	private int _maxAge;
	private String _expectedReligion;
	private String _expectedCaste;
	private String _expectedSubCaste;
	private String _expectedCountry;
	private String _expectedState;
	private String _expectedCity;
	private String _expectedHeight;
	private String _expectedWeight;
	private String _expectedComplexion;
	private String _expectedLanguage;
	private String _expectedMaritalStatus;
	private String _expectationDetail;
}